{* Smarty *}
{extends file='include/base.tpl'}

{block name='javascript'}
<script type="text/javascript">
(function($) {
    $(function() {
        $('#submit_button').click(function() {
            if ($('#password').val() != $('#confirm_password').val()) {
                $('#password_tips').show();
                return;
            }
            $('#active_from').submit();
        });
    });
})(jQuery);
</script>
{/block}

{block name='crumb'}
    <h2>激活用户<span>&raquo; 激活用户</span></h2>
{/block}

{block name='content'}
<h3 class="blockTitle">
    <p class="cRed">请输入您的用户名，设置密码，操作成功后，系统跳转到登陆页面</p>
</h3>
<form id="active_from" method="post" action="/user/active">
<table width="500" class="tbLayout01" cellspacing="0" cellpadding="0" style="border-bottom:1px dashed #93D7F0;">
    <tr>
        <td width="100" class="textRight">用户名:</td>
        <td class="textLeft">
            <input type="text" name="username" />
        </td>
    </tr>
    <tr>
        <td width="100" class="textRight">密码:</td>
        <td class="textLeft">
            <input type="password" id="password" name="password" />
            <span id="password_tips" class="errorInfo" style="display:none">两次输入的密码不一致</span>
        </td>
    </tr>
    <tr>
        <td width="100" class="textRight">确认密码:</td>
        <td class="textLeft">
            <input type="password" id="confirm_password"  />
        </td>
    </tr>
    <tr>
        <td class="textRight">&nbsp;</td>
        <td class="textLeft">
            <input type="hidden" name="signature" value="{$signature}" />
            <input type="hidden" name="{$token_name}" value="{$token_hash}" />
            <input type="button" id="submit_button" value="提 交" />&nbsp;&nbsp;
        </td>
    </tr>
</table>
</form>
{/block}
